#! /usr/bin/env python
# -*- coding: utf-8 -*-

# *************************************************************
#     Filename @  zombieprocess.py
#       Author @  Huoty
#  Create date @  2015-07-20 21:59:17
#  Description @  
# *************************************************************

import os

def zombie():
    try:
        pid = os.fork()
    except OSError, e:
        print e

    if pid == 0:
        pass
    elif pid > 0:
        while True:
            pass
    else:
        print "error fork!"

# Script starts from here

if __name__ == "__main__":
    zombie()
